package com.moonciki.artadmin.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;
import uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J;

@Slf4j
@EnableAsync
@EnableCaching
@EnableSwagger2
//@EnableSwaggerBootstrapUI
//@EnableWebSocket
@ComponentScan(basePackages = {
        "com.moonciki.artadmin"
})
//@MapperScan(basePackages = {
//        "com.moonciki.artadmin.web",
//        "com.moonciki.artadmin.system"
//})
@SpringBootApplication
public class DemoWebApplication {

    public static void main(String[] args) {

        log.info("version: 2021-12-17 16:59:24");

        SysOutOverSLF4J.sendSystemOutAndErrToSLF4J();

        SpringApplication.run(DemoWebApplication.class, args);

    }

}
